package com.yanjingzheng.entity;

/**
 * @Author Yenchingcheng
 * @Date 2023/10/27 9:59
 * @Description 股票类
 **/
public class Stock {

    private String name = "MOUTAI";
    private Integer quantity = 10;

    public void buy() {
        System.out.println("Stock [ name:" + name + ",quantity:" + quantity + " ] bought");
    }

    public void sell() {
        System.out.println("Stock [ name:" + name + ",quantity:" + quantity + " ] sold");
    }

}
